/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 三方融资申请(DLR)

// 获取最新申请编号 /ttFiTripartiteApply/applyNo
export const latestApplyNo = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/applyNo`, {
  params
})
// 分页查询 /ttFiTripartiteApply/page
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteApply/page`, params)

// 保存 /ttFiTripartiteApply/saveOne
export const saveOne = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteApply/saveOne`, params)

// 提报 /ttFiTripartiteApply/submit1
export const submitData = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteApply/submit1`, params)

// 银行名称 /tmFiTripartiteBank/selectByOwnerCode
export const getBankName = (params) => axios.get(`${SERVER.WHOLESALES}/tmFiTripartiteBank/selectByOwnerCode`, {
  params
})

//  查询明细 /ttFiTripartiteApply/selectOne?id=主键id
export const getDetailById = (id) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/selectOne?id=${id}`)
